package com.ruoyi.project.wx.user.service;

import com.ruoyi.common.utils.text.Convert;
import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
import com.ruoyi.project.wx.user.domain.BindUser;
import com.ruoyi.project.wx.user.mapper.BindUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("bindUserService")
public class BindUserServiceImpl implements BindUserService {

    @Autowired
    private BindUserMapper bindUserMapper;

    @Override
    @DataScope(tableAlias = "w")
    public int insert(BindUser bindUser) {
        return bindUserMapper.insert(bindUser);
    }

    @Override
    @DataScope(tableAlias = "w")
    public List<BindUser> bindUserlist(BindUser bindUser) {
        return bindUserMapper.bindUserlist(bindUser);
    }

    @Override
    public int delbindUserByIds(String ids) {
        return bindUserMapper.delbindUserByIds(Convert.toStrArray(ids));
    }
}
